<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="js/jquery-1.12.4.js"></script>
	<script type="text/javascript">
/* 	$(function(){
		 
		 $.post("PageServlet","",function(result){
			 
		 });
		
		
	});
	 */
	
	</script>
	
  </head>
  
  <body>
     <table>
       <tr>
          <td>图书编号</td>
          <td>图书名称</td>
          <td>图书摘要</td>
          <td>上传人</td>
          <td>上传时间</td>
          <td>操作</td>
       </tr>
       <c:forEach items="${books}" var="book" varStatus="">
               <tr>
          <td>${book.id }</td>
          <td>${book.title}</td>
          <td>${book.summary }</td>
          <td>${book.updateUser }</td>
          <td>${book.createTime}</td>
          <td><a href="updateServ">修改</a><a href="javascript:vaoid(0)">删除</a></td>
       </tr>
       </c:forEach>
       
     </table>
     
     <a href="PageServlet?cp=1">首页</a>
     <a href="PageServlet?cp=${cp-1 }">上一页</a>
     <a href="PageServlet?cp=${cp+1 }">下一页</a>
     <a href="PageServlet?cp=${totalPage }">尾页</a>
  </body>
</html>
